<tagLib name="preem" />
<?php
extract(doSearch(get_children('82')));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>搜索结果&nbsp;{&site_name}团委学生会</title>
        <link rel="stylesheet" type="text/css" href="__TMPL__reset.css"/>
        <link rel="stylesheet" type="text/css" href="{$TplPath}/css/index.css"/>
        <script type="text/javascript" src="__TMPL__v.js"></script>
        <script type="text/javascript">
            DD_roundies.addRule('.rounded', '8px', true);
            DD_roundies.addRule('#commands', '0 0 8px 8px', true);
            DD_roundies.addRule('#head', '0 0 10px 10px', true);
        </script>
		<style type="text/css">
            .sk{
                padding:0 4px;
                color:#FE0F10;
            }
        </style>
	</head>
	<body>
        <div id="container" class="clearfix">
            {:get_var('Head_Student')}
			<div id="position">
                <a href="__URL__/index.html">{&site_name}团委学生会</a>∈搜索结果
            </div>
            <div id="content" class="rounded clearfix">
				<div id="left" style="width:980px;margin-right:0;border:none;">
					<h5 class="rounded" id="arcTitle">约有<b class="sk">{$rsCount}</b>项符合<b class="sk">{.key}</b>的搜索结果
                    <?php 
                    $resultCount=count($result);
                    if($resultCount>0){
                        $curPos=intval($startPage)+1;
                        if($resultCount>1)
                         echo '当前是第<b class="sk">'.$curPos.'-'.($curPos+$resultCount-1).'</b>项';
                        else
                         echo '当前是第<b class="sk">'.$curPos.'</b>项';
                    }
                    ?>
                    </h5>
					<div id="arclist">
                        <?php
                        $cats=GC_Category();
                        ?>
						<iterate name="result" id="vo">
                            <?php
                            $cat=$cats[$vo['category']];
                            ?>
						<div class="arcItem">
							<div class="title">
								<div class="pubdate">{$vo['pubdate']|parseDatetime='Y-m-d H:i',###}</div>
								<div>
									<a href="__URL__/category/id/{$vo['category']}.html" title="<?php echo $cat['fullname'];?>">[<?php echo $cat['typename'];?>]</a>
									<a href="__URL__/view/id/{$vo['id']}.html" class="tip">{$vo['title']}</a>
								</div>
							</div>
							<p class="summary">{$vo['summary']}...<a href="__URL__/view/id/{$vo['id']}.html">[详细]</a></p>
						</div>
						</iterate>
					</div>
					<div id="pagebreak" class="rounded">
						{$page}
					</div>
					<script type="text/javascript">
						var key='{^key}';
						if(key){
							hightlight(document.getElementById("arclist"), key.split(/[, ]/));
						}
                    </script>
				</div>
            </div>
            <div id="copyright">
                <p><b>{&site_name}</b><b>版权所有</b><b><a target="_blank" href="__APP__/Public/login">网站管理</a></b></p>
                <p>copyright&copy;2009,school of Mechanical Engineering and Automation,All Rights Reserved</p>
            </div>
        </div>
	</body>
</html>